package com.jevons.muffin.socket;

import okhttp3.WebSocket;
import okio.ByteString;

/**
 * WsManger基类，规定必要方法
 * @author linaisheng
 * Created at 2019/4/23.
 */

interface IWsManager {
    WebSocket getWebSocket();

    void startConnect();

    void stopConnect();

    boolean isWsConnected();

    int getCurrentStatus();

    void setCurrentStatus(int currentStatus);

    boolean sendMessage(String msg);

    boolean sendMessage(ByteString byteString);
}
